<div id='panel'>

<div class="fulldiv" style="width:700px;">
 
 <div class="fulldiv" style="margin:10px 0px 0px 0px;">
  <?
       if($_SESSION['user_type_sess']=='3')
 	 echo '<div style="float:left; margin:0px 10px 0px 10px; padding-top:8px;"><strong class="orangehead">Your Inventory</strong></div>';
	else
	  echo '<div style="float:left; margin:0px 10px 0px 10px; padding-top:8px;"><strong class="orangehead">YOUR products sold for YOU</strong></div>';
  ?>
	<div class="greyarrowsml" id="arrow_your_inventory" onclick="show_hide_s_boxes('your_inventory')">&nbsp;</div>
	
	
	<div class="star" style="float: right; margin-top:11px;" id="star_your_inventory">&nbsp;</div>
	<a href="javascript:void(0)" class="bluelink" style="float: right; margin-top:13px;" onclick="show_more_info1()" id="more_info_your_inventory">more info</a>
	
 </div>
<script>
function show_more_info1()
{
  var ntop = ( $(window).height() - $('#more_info1').height() ) / 2+$(window).scrollTop();
  var nleft = ( $(window).width() - $('#more_info1').width() ) / 2+$(window).scrollLeft();

  $('#more_info1').css({'left': nleft, 'top':ntop});
  $('#more_info1').fadeIn('slow');
}
function show_info1(num)
{
  var ntop = ( $(window).height() - $('#show_info1').height() ) / 2+$(window).scrollTop();
  var nleft = ( $(window).width() - $('#show_info1').width() ) / 2+$(window).scrollLeft();
  $('#totalnum').val(num);
  $('#show_info1').css({'left': nleft, 'top':ntop});
  $('#show_info1').fadeIn('slow');
}

function show_seller(a)
  {
    $('#sellerbox').html('<div style="text-align:center; width:100%; float:left; padding:30px 0px 30px 0px"><img src="<?php echo $base_url;?>images/spinningLoader.gif" align="absmiddle"  /><div>').show();
    var pos = $('#menulinks').position();
    var nleft = parseInt(pos.left) + 11;
    var ntop = pos.top;
    
    $('#catBox').css({'left':nleft,'top':ntop});
   
    $('#cat_a'+a).attr('class','current');
    
    $('#for_sale').attr('class','');
    $('#jobs').attr('class','');
    $('#real_esate').attr('class','');
    $('#rent').attr('class','');
    $('#classifieds').attr('class','');
    
    var url = "<?php echo $base_url;?>ajax_category.php";
    $.post(url,
    { 'id': a},
    function(data)
    {
      if(data!='')
      $('#catBox').html(data);
      
      if(a==1)
	$('#for_sale').attr('class','current');
      else if(a==2)
	$('#jobs').attr('class','current');
      else if(a==3)
	$('#real_esate').attr('class','current');
      else if(a==4)
	$('#rent').attr('class','current');
      else if(a==5)
	$('#classifieds').attr('class','current');
    },
    'html'
    );
    
  }
</script>
<div id="sellerbox">
   
</div>
<div style=" display: none; width: 400px; font-weight:bold; padding:10px; background-color:#cccccc; opacity:0.9;" class="user_popup" id="more_info1">
  <span style="float:left; width:100%; text-align:right; margin-bottom:5px;"><label style="cursor:pointer;" onclick="$('#more_info1').fadeOut('slow');">x</label></span>
  <span style="float:left; width:100%; margin-bottom:10px;" id="desc_info">Your Inventory is your central place for creating, editing, and customizing products you wish to sell. This inventory never expires. Once you products are listed they right away become available for sellers to pick up and sell.</span>
</div>

<div style=" display: none; width: 400px; font-weight:bold; padding:10px; background-color:#cccccc; opacity:0.9;" class="user_popup" id="show_info1">
  <span style="float:left; width:100%; text-align:right; margin-bottom:5px;"><label style="cursor:pointer;" onclick="$('#show_info1').fadeOut('slow');">x</label></span>
  <span style="float:left; width:100%; margin-bottom:10px;" id="desc_info">To start your products sold for you,we require all buyer seller accounts to
  varify themselves by making 10 purchases and/or sales prior. This helps buyers feel more secure when purchasing from sellers selling more items.<br>
  Please use the counter on to help keep track and as soon as you hits 10 this feature will become available to you <br>
  Counter: <input type='text' size='5' id="totalnum" value="" />
  
  </span>
</div>
<div id="your_inventory">
  <div class="fullbox_top">&nbsp;</div>
  <div class="fullbox_repeat">
  
  <table width="98%" border="0">
    <tr>
      <td>		
		   <?php
			  //Edit Product Price and commission
			  if(!empty($_POST['editSellingProductOwnKey'])) {
				  $itemId=$_POST['editSellingProductOwnKey'];
				  $commission=$_POST['commission'];
				  $price=$_POST['price'];
				  $sqlSelItemUpd="SELECT * FROM tbl_items where item_id='$itemId'";
				  $rstSelItemUpd=mysql_query($sqlSelItemUpd);			
				  $rowSelItemUpd=mysql_fetch_array($rstSelItemUpd);	
				  $sqlUpdSellingProd="UPDATE tbl_items SET commission='$commission', price ='$price' WHERE item_id=$itemId";
				  $rstUpdSellingProd=mysql_query($sqlUpdSellingProd);
				  if($rstUpdSellingProd){ 			
					  echo "<div id='suc-msg'> Your selling Product edited. </div>"; 
				  }
				  else {
					  echo "<div id='err-msg'> Error on editing product. </div>";
				  }
				  }
		   ?>
		   <form name="frmProListOwn" id="frmProListOwn" method="post" action="">
			  <input type="hidden" name="hidDelPro" id="hidDelPro"  />
	      <input type="hidden" name="hidDelProKey" id="hidDelProKey"  />
	       <input type="hidden" name="hidEditSellingItemOwn" id="hidEditSellingItemOwn"  />
		   <?php		   
				  //delete single product		 
			  if(!empty($_POST['hidDelPro'])) {
			  
				  $proId=$_POST['hidDelPro'];
				  $sqlDelPro3="Delete from tbl_product where product_id=$proId";
				  $rstDelPro3=mysql_query($sqlDelPro3);
				  if($rstDelPro3) { 
				  
				  //setup for auto email
					  $sqlEmail="select * from tbl_emails where email_type='Item Deleted'";
					  $resEmail=mysql_query($sqlEmail);
					  $rowEmail=mysql_fetch_array($resEmail);
					  
					  $sqlSellers="select * from tbl_items ti, tbl_users tu where tu.user_id=ti.seller_id and ti.product_id='".$proId."'";
					  $resSellers=mysql_query($sqlSellers);
					  while($rowSellers=mysql_fetch_array($resSellers))
					  {
					  $subj=str_replace('##_ItemName',$_POST['itemname'],$rowEmail['email_subject']);
					  $emailContent=str_replace('##_MerchantName',$rowSellers['username'],$rowEmail['email_body']);
					  $emailContent=str_replace('##_ItemName',$_POST['itemname'],$emailContent);
	    $mailmsg="<table width='100%' border='0' style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px; line-height:25px'>
    <tr>
      <td width='18%' height='41'><table width='100%' border='0'>
	<tr>
	  <td width='19%' height='68'><img src='http://www.swapen.com/images/logo.gif'></td>
	  <td width='81%'> </td>
	</tr>
      </table></td>
    </tr>
    <tr>
      <td height='32' colspan='2' style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;'>".$emailContent."</td>
    </tr>
    
   
  </table>
  ";
		  $mail = new PHPMailer(); // defaults to using php "mail()"
		  $mail->MsgHTML($mailmsg);
		  $mail->From       = "mail@swapen.com";
		  $mail->FromName   = "Swapen.com";
		  $mail->Subject    = $subj;
		  $mail->AddAddress($rowSellers['email'], $firstName);
		  $mail->Send();
					  }
				  echo "<div id='suc-msg'> Your product deleted. </div><br>"; 
				  }
				  }
				    $sqlSelPro="SELECT * FROM tbl_product where posted_by='$userId' and sell_by=0 ORDER BY product_id DESC";
				     $rstSelPro=mysql_query(getPagingQuery($sqlSelPro,$itemPerPage));				  
				     $num=mysql_num_rows($rstSelPro);
				     //$num=10;
				     if($num==0 && $_SESSION['user_type_sess']==3)
					  {
					    ?>
					    <br>
					      <table width='100%' border='0' align='center' cellspacing='0'>
						  <tr>
						    <td colspan="15" align="center">
						      <div class="box" style="float:none;">
							  <div class="box_top">&nbsp;</div>
							  <div class="box_middle">
							      <div class="boxtxt_out"><strong>Sell your products</strong></div>
							      <div class="boxtxt_out"><em>Ready to start having your products sold for you?</em></div>
							      <div class="boxtxt_out">
								<div class="box_img">
								  <img src="images/starthere_blue.png" style="cursor:pointer;" onclick="window.location='index.php?sell&by=seller'" />
								</div>
							      </div>
							  </div>
							  <div class="box_bottom">&nbsp;</div>
						      </div>
						    </td>
						  </tr>
					      </table>
					    <?php
					    }
					    else if($num<10 && $_SESSION['user_type_sess']!=3)
					    {
					      ?>
					      <br>
					      <table width='100%' border='0' align='center' cellspacing='0'>
						  <tr>
						    <td colspan="15" align="center">
						      <div class="box" style="float:none;">
							  <div class="box_top">&nbsp;</div>
							  <div class="box_middle">
							    
							      <div class="boxtxt_out"><em>Do you have products you want sold for you?</em></div>
							      <div class="boxtxt_out">
								
								<div style="text-align:left;float:left;padding-top:30px;"><a href="javascript:void(0);" style="text-decoration:none" <?php if($num<10){ ?> onclick="return show_info1(<?=$num?>);" <?php } ?>><strong>Counter</strong></a> <input type='text' size='5' value="<?php echo $num?>"></div>
								<div class="box_img">
								  
								  <img src="images/starthere_blue.png" style="cursor:pointer;" 
								  <?php 
								  if($num<10){ 
								  ?> 
								  onclick="return show_info1(<?=$num?>);"<?php 
								  } 
								  else 
								  { ?> onclick="window.location='index.php?sell&by=seller'" <? } ?> />
								</div>
							      </div>
							  </div>
							  <div class="box_bottom">&nbsp;</div>
						      </div>
						    </td>
						  </tr>
					      </table>
					      <?php
					  }
				     else
				     {	?>
					    
					    <div style="float: left; width: 660px; border-bottom:2px solid #ccc;">
					      <div style="width: 22px;" class="cell_head">&nbsp;</div>
					      <div style="width: 22px;" class="cell_head">#</div>
					      <div style="width: 90px;" class="cell_head">Product Name</div>
					      <div style="width: 75px;" class="cell_head">Condition</div>
					      <div style="width: 65px; text-align: center;" class="cell_head">Pick Up</div>
					      <div style="width: 40px; text-align: center;" class="cell_head"># of Sellers</div>
					      <div style="width: 35px; text-align: center;" class="cell_head">Qty</div>
					      <div style="width: 80px; text-align: center;" class="cell_head">Commission</div>
					      <div style="width: 60px; text-align: center;" class="cell_head">Shipping</div>
					      <div style="width: 60px; text-align: center;" class="cell_head">Price</div>
						  <div style="width: 40px; text-align: center;" class="cell_head">&nbsp;</div>
					    </div>
				     
					    <div style="max-height:180px; overflow-y:auto; width:660px; float:left;">
					    <?php
					      $r=1;
					      while($rowSelPro=mysql_fetch_array($rstSelPro))
					      {						   
						$productId=$rowSelPro['product_id'];
						$productName=wordFormater($rowSelPro['product_name'],10);
						$productTitle = $rowSelPro['product_name'];					   
						$productPrice=$rowSelPro['product_price'];
						$productThumb=$rowSelPro['product_thumbnail'];
						$productImage=$rowSelPro['product_image'];
						$productSellingType=$rowSelPro['selling_type'];
						$productShipping=$rowSelPro['shipping'];
						$productProCondition=$rowSelPro['pro_condition'];
						$productQuantity=$rowSelPro['quantity'];
						$commission=$rowSelPro['commission'];
						$postedBy=$rowSelPro['posted_by'];
						$postedDate=$rowSelPro['posted_date'];
						$bargainDate = $rowSelPro['bargain_duration'];
						$localPickup = $rowSelPro['localPickup'];
						$pickup = 'Not Available';
						if($localPickup==1)
						$pickup = 'Available';
						     
						if(!empty($productShipping))
						  $productShipping="$".number_format(round($productShipping,2),2);
						else
						  $productShipping="Free";
						$timeLeft = getRemainingTime($bargainDate);
						if($timeLeft < 0) {
						  $timeLeft = "<font color='red'>Listing Expired</font>";
						}
						$sqlSelNoSeller="SELECT * FROM tbl_items where product_id='$productId'  and seller_id!='$userId'";
						$rstSelNoSeller=mysql_query($sqlSelNoSeller);				
						$numSelNoSeller=mysql_num_rows($rstSelNoSeller);
						if($numSelNoSeller<=1)
						  $imageExpand="<img src='./images/plus_ico.png' align='absmiddle' id='exp_$productId' style='cursor:pointer;' onclick='show_codes($productId);' />";
						else
						  $imageExpand="<a href='javascript:void(0);' onClick='funExpandProduct($productId,\"mchnt\",\"divSellingPro$productId\",$r)'><img src='images/16x16x+.jpg'  border='0'></a>";
						?>
						<div id="divSellingPro<?php echo $productId?>" style="float:left; width:659px; border-bottom:1px solid #ccc; margin:3px 0px 3px;  background:#F9F7F7;">
						  <div style="width:25px; margin:0px 5px 0px 0px;" class="cell_row"><?php echo $imageExpand;?></div>
						  <div style="width:22px;" class="cell_row"><?php echo $r;?></div>
						  <div style="width:95px;" class="cell_row"><a href="index.php?SellProduct=<?php echo $productId;?>" title="<?php echo $productTitle;?>"><?php echo $productName; ?></a></div>
						  <div style="width:75px;" class="cell_row"><?php echo $productProCondition;?></div>
						  <div style="width:65px; text-align: center;" class="cell_row"><?php echo $pickup;?></div>
						  <?php
						  if($numSelNoSeller!=0) {
						  ?>
						  <div style="width: 40px; text-align: center;" class="cell_row"><a href="javascript:void(0);" onClick="window.location='index.php?editSellingProduct=<?php echo $productId;?>'"><?php echo $numSelNoSeller;?></a></div>
						  <?php
						  }
						  else { ?>
						  <div style="width: 40px; text-align: center;" class="cell_row"><?php echo $numSelNoSeller;?></div>
						  <?php
						  } ?>
						  <div style="width: 35px; text-align: center;" class="cell_row"><?php echo $productQuantity;?></div>
						  <div style="width: 90px; text-align: center;" class="cell_row">$<?php echo number_format($commission,2);?></div>
						  <div style="width: 60px; text-align: center;" class="cell_row"><?php echo $productShipping;?></div>
						  <div style="width: 60px; text-align: center;" class="cell_row">$<?php echo number_format(round($productPrice,2),2);?></div>
						  <div style="width: 40px;" class="cell_row">
						    <a href="javascript:void(0)" onclick="show_cf_box('edit',<?php echo $productId;?>)" id="edit_cf_<?php echo $productId;?>">Edit</a>  <a href="javascript:void(0);" id="delete_cf_<?php echo $productId;?>" onclick="show_cf_box('del',<?php echo $productId;?>)">Delete</a>
						  </div>
						</div>
						<?php
					        $r++;
					      } ?>
					    </div>
						 
				<?php
				      }
						  
		    if(($num!=0 && $_SESSION['user_type_sess']==3) || ($num>=10 && $_SESSION['user_type_sess']!=3)) {
		      
		     echo"<table width='100%' style='float:left;' border='0' align='center' cellspacing='0'><tr><td colspan='4'>
		     <a href='javascript:void(0);' onclick='show_more_info7()' class='refer_btn' style='float: left; height: 22px; margin: 10px 10px 0px 10px; 
		     padding: 7px 5px 0; text-decoration: none;'>SwapenBuddy-helper</a>&nbsp;&nbsp;
		     <a href='index.php?sell&by=seller' class='yellow_btn' style='float: left; height: 22px; margin: 10px 10px 0px 10px; 
		     padding: 7px 5px 0; text-decoration: none;''>Add more Items +</a>&nbsp;&nbsp;
		     <a href='seller_store.php?sid=$userId' class='sbmt_btn' style='float: left; height: 22px; margin: 10px 10px 0px 10px; 
		     padding: 7px 5px 0; text-decoration: none;''>Customize Your Swapen Store</a>
		     </td></tr></table>";
		    }
									  
	  ?>
	  <?php /*?><a href='seller_store.php?sid=$userId'><strong>Visit Store</strong></a><?php */?>
	  </form>
	  </td>
  </tr>
  
  <tr>
	  <td><div align="center"><?php
		     $link="mySwapen";
		     echo $disp=getPagingLink($sqlSelPro,$itemPerPage,$link);							   
	   ?></div>
	  </td>
  </tr><tr>
    <td>
    <a name="editOwn" id="editOwn"></a>
    <?php
    if(!empty($_POST['hidEditSellingItemOwn'])) {
      $sqlSelLstEdit="SELECT * FROM tbl_items where item_id=".$_POST['hidEditSellingItemOwn'];
      $rstSelLstEdit=mysql_query($sqlSelLstEdit);
	  $rowSelLstEdit=mysql_fetch_array($rstSelLstEdit);
	  $productInfo=getProductById($rowSelLstEdit['product_id']);
    ?>
     <div id="divEditWishlist">
      <form name="frmEditSellingProduct" id="frmEditSellingProduct" method="post" action="">
      <input type="hidden" name="editSellingProductOwnKey" id="editSellingProductOwnKey" />
	<table width="100%" border="0">
	  <tr  class='head-tr'>
	    <td colspan="3"><strong>Edit product comission and price</strong></td>
	  </tr>
	  <tr>
	    <td height="29">&nbsp;</td>
	    <td width="21%"><strong>Product</strong></td>
	    <td width="77%"><span class="style1">
	      <?php echo $productInfo['product_name']; ?>
	    </span></td>
	  </tr>
	  <tr>
	    <td height="31">&nbsp;</td>
	    <td><strong>Seller</strong></td>
	    <td><?php if(!empty($rowSelLstEdit['seller_id']))
			  echo $sellerName=getUser($rowSelLstEdit['seller_id']);
			  ?></td>
	  </tr>
	  <tr>
	    <td height="31">&nbsp;</td>
	    <td><strong>Price (PP)</strong></td>
	    <td><input type="text" name="price" id="price" size="33" value="<?php if(!empty($rowSelLstEdit['price']))
			  echo $rowSelLstEdit['price'];
			  ?>"/></td>
	  </tr>
	  <tr>
	    <td height="31">&nbsp;</td>
	    <td><strong>Comission (PP)</strong></td>
	    <td><input type="text" name="commission" id="commission" size="33" value="<?php if(!empty($rowSelLstEdit['commission']))
			  echo $rowSelLstEdit['commission'];
			  ?>"/></td>
	  </tr>
	  <tr>
	    <td height="34">&nbsp;</td>
	    <td>&nbsp;</td>
	    <td><label>
	      <input type="button" name="editSellingProduct" id="editSellingProduct" value="Edit product" onclick="funEditSellingProductOwn('frmEditSellingProduct',<?php  if(!empty($_POST['hidEditSellingItemOwn'])) echo $_POST['hidEditSellingItemOwn'];?>)" />
	    </label></td>
	  </tr>
	</table>
	</form>
      </div></td>
      <?php } ?>
  </tr>
  </table>
  
  </div>
  <div class="fullbox_bot">&nbsp;</div>
</div>
<hr style="float:left; width:500px; display:none;" id="hr_line_your_inventory" />
</div>

</div>

<script>
function show_cf_box(action,productId)
{
  if(action=='edit') {
    var ntop = (( $(window).height() - $('#edit_cf_'+productId).height()) / 2+$(window).scrollTop()) - 100;
    var nleft = ( $(window).width() - $('#edit_cf_'+productId).width()) / 2+$(window).scrollLeft();

    $('#edit_inventory_cf').css({'left': '', 'top':ntop});
    $('#edit_inventory_cf').fadeIn('slow');
    $('#proceedbtn').attr('onclick','window.location="index.php?editlist='+productId+'";');
  }
  else {
    var ntop = (( $(window).height() - $('#delete_cf_'+productId).height()) / 2+$(window).scrollTop()) - 100;
    var nleft = ( $(window).width() - $('#delete_cf_'+productId).width()) / 2+$(window).scrollLeft();

    $('#del_inventory_cf').css({'left': '', 'top':ntop});
    $('#del_inventory_cf').fadeIn('slow');
    $('#proceedbtn_del').attr("onclick","funDelProduct('frmProListOwn','prod',"+productId+");");
    
  }
}

function show_codes(productId)
{
  
  $('#exp_'+productId).attr('src','./images/minus_ico.png');
  var url = "<?php echo $base_url;?>update_item_code.php";
  $.post(url,
  { 'product_id':productId,'action':'1'},
  function(data)
  {
    
    if(trim1(data)!='fail')
    {
      var pos = $('#exp_'+productId).position();
      var top = pos.top;
      var left = pos.left;
      $('#code_box').css({'left': left, 'top':top}).html(data).show();
      
    }
    else
    {
     
      alert('No item codes avialable.');
      $('#exp_'+productId).attr('src','./images/plus_ico.png');
      $('#code_box').hide();
    }
  },
  'html');  
}

function update_code(code_id)
{
  var code = $('#code_'+code_id).val();
  
  var url = "<?php echo $base_url;?>update_item_code.php";
  $.post(url,
  { 'code':code,'code_id':code_id,'action':'2'},
  function(data)
  {		
    if(trim1(data)!='fail')
    {
      alert('Code changed successfully!');
    }
    else
    {
      alert('This code cannot be changed'); 
    }
  },
  'html');
  
}

function trim1(stringToTrim) {
  return stringToTrim.replace(/^\s+|\s+$/g,"");
}
</script>

<div class="popup_box" style="display:none; position:absolute; background:#FFFFFF;" id="code_box">
  
  <div class="popup_box_in" style="">
    <table></table>
  </div>
</div>

<div class="popup_box" style="display:none; position:absolute; background:#FFFFFF;" id="edit_inventory_cf"> 
  <div class="popup_box_in" style="height:170px;">
      <div style="float: left; margin: 0 30px; padding: 5px; text-align: left; width: 85%;">
	   You are only able to edit the quantity of the products that have not been picked up by the sellers.<br /><br />
	  *For example: If you have 10 Sony televisions and 2 sellers selling the tv's, you are able to edit 8 of the Sony televisions.<br /><br />
	  If you require to edit all items you will need to delete  and re-post the item. Doing so will also delete all sellers currently selling your items.
      </div>
      <div style="float:left; width:98%; padding:5px;">
	  <input type="button" name="" value="Close" class="refer_btn" style="margin:0px; height:30px; cursor:pointer;" onclick="javascript:$('#edit_inventory_cf').hide();" />
			  &nbsp;&nbsp;&nbsp;&nbsp;
	  <input type="button" id="proceedbtn" value="Proceed" class="yellow_btn"  style="float:none; height:30px; cursor:pointer;" />
      </div>
  </div>
</div>
<div class="popup_box" style="display:none; position:absolute; background:#FFFFFF;" id="del_inventory_cf"> 
      <div class="popup_box_in" style="height:120px;">
	  <div style="float:left; width:90%; padding:5px;">
	      Are you sure you want to delete this item?<br />
	  </div>
	  <div style="float: left; margin: 0 30px; padding: 5px; text-align: left; width: 85%;">
	      If you choose to delete this item, all sellers currently selling your item will have it deleted from their inventories.
	  </div>
	  <div style="float:left; width:98%; padding:5px;">
	      <input type="button" name="" value="Close" class="refer_btn" style="margin:0px; height:30px; cursor:pointer;" onclick="javascript:$('#del_inventory_cf').hide();" />
			      &nbsp;&nbsp;&nbsp;&nbsp;
	      <input type="button" id="proceedbtn_del" value="Proceed" class="yellow_btn"  style="float:none; height:30px; cursor:pointer;"/>
	  </div>
      </div>
  </div>

<div style=" display: none; width: 400px; font-weight:bold; padding:10px; background-color:#cccccc; opacity:0.9;" class="user_popup" id="more_info7">
  <span style="float:left; width:100%; text-align:right; margin-bottom:5px;"><label style="cursor:pointer;" onclick="$('#more_info7').fadeOut('slow');">x</label></span>
  <span style="float:left; width:100%; margin-bottom:10px;" id="desc_info">Swapen Buddy is here to help you when no seller has picked up your items within a couple of days. Swapen Buddy will list your items automatically for you, so you dont ever have to worry. Once a Seller picks the item(s) the Swapen Buddy listing will be replaced with the Sellers.</span>
</div>
<script>
  function show_more_info7()
{
  var ntop = ( $(window).height() - $('#more_info7').height() ) / 2+$(window).scrollTop();
  var nleft = ( $(window).width() - $('#more_info7').width() ) / 2+$(window).scrollLeft();

  $('#more_info7').css({'left': nleft, 'top':ntop});
  $('#more_info7').fadeIn('slow');
}
  
</script>
 